package com.comdev.ctrls;

import com.comdev.orm.jdbc.DbKit;
import com.comdev.ut.string.StringUT;
import com.comdev.vos.t_login;
import org.nutz.dao.DatabaseMeta;
import org.nutz.json.Json;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * User: zhu
 * Date: 13-10-13
 * Time: 下午1:54
 */
@Controller
@RequestMapping("/")
public class init
{

    @RequestMapping("")
    public ModelAndView showindex()
    {
        ModelAndView out = new ModelAndView();

        out.addObject("hello", "你好！java！0000");

//        out.setViewName("index");

        out.setViewName("login");

        out.addObject("datas", "test");
        return out;

    }

    @RequestMapping("admin")
    public ModelAndView admin(@ModelAttribute("curuser") t_login voLogon)
    {
        ModelAndView out = new ModelAndView();
        out.setViewName("index");
        return out;
    }

    @RequestMapping("default_right")
    public ModelAndView default_right(@ModelAttribute("curuser") t_login voLogon)
    {
        ModelAndView out = new ModelAndView();
        out.setViewName("default_right");
        return out;
    }








}
